package com.tanhua.api;

import com.tanhua.model.mongo.Movement;
import com.tanhua.model.vo.PageResult;

import java.util.ArrayList;
import java.util.List;

public interface MovementApi {
    void publish(Movement movement);

    PageResult<Movement> findPageByUserId(Long userId, int page, int pageSize);


    List<Movement> findMovements(int page, int pageSize, Long getid);

 List<Movement> radomMovements(int pageSize);

    List<Movement> findMovementsByPids(List<Long> pids);

    Movement findOneByid(String id);

    PageResult findMovementsByUid(Integer page, Integer pagesize, Long uid, Integer state);

}
